home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / plugindialog_base.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  5.3 KB  |  114 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from PyQt4 import QtCore, QtGui
  5.  
  6. class Ui_Dialog(object):
  7.     
  8.     def setupUi(self, Dialog):
  9.         Dialog.setObjectName('Dialog')
  10.         Dialog.resize(QtCore.QSize(QtCore.QRect(0, 0, 700, 500).size()).expandedTo(Dialog.minimumSizeHint()))
  11.         self.gridlayout = QtGui.QGridLayout(Dialog)
  12.         self.gridlayout.setObjectName('gridlayout')
  13.         self.StackedWidget = QtGui.QStackedWidget(Dialog)
  14.         self.StackedWidget.setObjectName('StackedWidget')
  15.         self.page = QtGui.QWidget()
  16.         self.page.setObjectName('page')
  17.         self.gridlayout1 = QtGui.QGridLayout(self.page)
  18.         self.gridlayout1.setObjectName('gridlayout1')
  19.         self.label = QtGui.QLabel(self.page)
  20.         font = QtGui.QFont()
  21.         font.setPointSize(16)
  22.         self.label.setFont(font)
  23.         self.label.setObjectName('label')
  24.         self.gridlayout1.addWidget(self.label, 0, 0, 1, 1)
  25.         self.line = QtGui.QFrame(self.page)
  26.         self.line.setFrameShape(QtGui.QFrame.HLine)
  27.         self.line.setFrameShadow(QtGui.QFrame.Sunken)
  28.         self.line.setObjectName('line')
  29.         self.gridlayout1.addWidget(self.line, 1, 0, 1, 2)
  30.         self.TitleLabel = QtGui.QLabel(self.page)
  31.         self.TitleLabel.setWordWrap(True)
  32.         self.TitleLabel.setObjectName('TitleLabel')
  33.         self.gridlayout1.addWidget(self.TitleLabel, 2, 0, 1, 2)
  34.         spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  35.         self.gridlayout1.addItem(spacerItem, 3, 0, 1, 1)
  36.         self.groupBox = QtGui.QGroupBox(self.page)
  37.         self.groupBox.setObjectName('groupBox')
  38.         self.gridlayout2 = QtGui.QGridLayout(self.groupBox)
  39.         self.gridlayout2.setObjectName('gridlayout2')
  40.         self.DownloadRadioButton = QtGui.QRadioButton(self.groupBox)
  41.         self.DownloadRadioButton.setChecked(True)
  42.         self.DownloadRadioButton.setObjectName('DownloadRadioButton')
  43.         self.gridlayout2.addWidget(self.DownloadRadioButton, 0, 0, 1, 2)
  44.         self.CopyRadioButton = QtGui.QRadioButton(self.groupBox)
  45.         self.CopyRadioButton.setEnabled(True)
  46.         self.CopyRadioButton.setObjectName('CopyRadioButton')
  47.         self.gridlayout2.addWidget(self.CopyRadioButton, 1, 0, 1, 2)
  48.         spacerItem1 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum)
  49.         self.gridlayout2.addItem(spacerItem1, 2, 0, 1, 1)
  50.         self.hboxlayout = QtGui.QHBoxLayout()
  51.         self.hboxlayout.setObjectName('hboxlayout')
  52.         self.PathLineEdit = QtGui.QLineEdit(self.groupBox)
  53.         self.PathLineEdit.setEnabled(False)
  54.         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
  55.         sizePolicy.setHorizontalStretch(0)
  56.         sizePolicy.setVerticalStretch(0)
  57.         sizePolicy.setHeightForWidth(self.PathLineEdit.sizePolicy().hasHeightForWidth())
  58.         self.PathLineEdit.setSizePolicy(sizePolicy)
  59.         self.PathLineEdit.setObjectName('PathLineEdit')
  60.         self.hboxlayout.addWidget(self.PathLineEdit)
  61.         self.BrowseToolButton = QtGui.QToolButton(self.groupBox)
  62.         self.BrowseToolButton.setEnabled(False)
  63.         self.BrowseToolButton.setObjectName('BrowseToolButton')
  64.         self.hboxlayout.addWidget(self.BrowseToolButton)
  65.         self.gridlayout2.addLayout(self.hboxlayout, 2, 1, 1, 1)
  66.         self.SkipRadioButton = QtGui.QRadioButton(self.groupBox)
  67.         self.SkipRadioButton.setObjectName('SkipRadioButton')
  68.         self.gridlayout2.addWidget(self.SkipRadioButton, 3, 0, 1, 2)
  69.         self.gridlayout1.addWidget(self.groupBox, 4, 0, 1, 2)
  70.         spacerItem2 = QtGui.QSpacerItem(278, 51, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
  71.         self.gridlayout1.addItem(spacerItem2, 5, 1, 1, 1)
  72.         self.StackedWidget.addWidget(self.page)
  73.         self.gridlayout.addWidget(self.StackedWidget, 0, 0, 1, 5)
  74.         self.line_2 = QtGui.QFrame(Dialog)
  75.         self.line_2.setFrameShape(QtGui.QFrame.HLine)
  76.         self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
  77.         self.line_2.setObjectName('line_2')
  78.         self.gridlayout.addWidget(self.line_2, 1, 0, 1, 5)
  79.         self.StepText = QtGui.QLabel(Dialog)
  80.         self.StepText.setObjectName('StepText')
  81.         self.gridlayout.addWidget(self.StepText, 2, 0, 1, 1)
  82.         spacerItem3 = QtGui.QSpacerItem(161, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
  83.         self.gridlayout.addItem(spacerItem3, 2, 1, 1, 1)
  84.         self.BackButton = QtGui.QPushButton(Dialog)
  85.         self.BackButton.setEnabled(False)
  86.         self.BackButton.setObjectName('BackButton')
  87.         self.gridlayout.addWidget(self.BackButton, 2, 2, 1, 1)
  88.         self.NextButton = QtGui.QPushButton(Dialog)
  89.         self.NextButton.setObjectName('NextButton')
  90.         self.gridlayout.addWidget(self.NextButton, 2, 3, 1, 1)
  91.         self.CancelButton = QtGui.QPushButton(Dialog)
  92.         self.CancelButton.setObjectName('CancelButton')
  93.         self.gridlayout.addWidget(self.CancelButton, 2, 4, 1, 1)
  94.         self.retranslateUi(Dialog)
  95.         self.StackedWidget.setCurrentIndex(0)
  96.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  97.  
  98.     
  99.     def retranslateUi(self, Dialog):
  100.         Dialog.setWindowTitle(QtGui.QApplication.translate('Dialog', 'HP Device Manager - Plug-in Installer', None, QtGui.QApplication.UnicodeUTF8))
  101.         self.label.setText(QtGui.QApplication.translate('Dialog', 'Driver Plug-in Installation', None, QtGui.QApplication.UnicodeUTF8))
  102.         self.TitleLabel.setText(QtGui.QApplication.translate('Dialog', 'You may download the plug-in directly from an HP authorized server, or, if you already have a local copy of the plug-in file, you can specify a path to the file.', None, QtGui.QApplication.UnicodeUTF8))
  103.         self.groupBox.setTitle(QtGui.QApplication.translate('Dialog', 'Plug-in Installation Choice', None, QtGui.QApplication.UnicodeUTF8))
  104.         self.DownloadRadioButton.setText(QtGui.QApplication.translate('Dialog', 'Download and install the plug-in from an HP authorized server (recommended)', None, QtGui.QApplication.UnicodeUTF8))
  105.         self.CopyRadioButton.setText(QtGui.QApplication.translate('Dialog', 'Select and install an existing local copy of the plug-in file (advanced):', None, QtGui.QApplication.UnicodeUTF8))
  106.         self.BrowseToolButton.setToolTip(QtGui.QApplication.translate('Dialog', 'Open a local copy of the plug-in file', None, QtGui.QApplication.UnicodeUTF8))
  107.         self.SkipRadioButton.setText(QtGui.QApplication.translate('Dialog', 'Skip installation of the plug-in (not recommended)', None, QtGui.QApplication.UnicodeUTF8))
  108.         self.StepText.setText(QtGui.QApplication.translate('Dialog', 'Step %d of %d', None, QtGui.QApplication.UnicodeUTF8))
  109.         self.BackButton.setText(QtGui.QApplication.translate('Dialog', '< Back', None, QtGui.QApplication.UnicodeUTF8))
  110.         self.NextButton.setText(QtGui.QApplication.translate('Dialog', 'Next >', None, QtGui.QApplication.UnicodeUTF8))
  111.         self.CancelButton.setText(QtGui.QApplication.translate('Dialog', 'Cancel', None, QtGui.QApplication.UnicodeUTF8))
  112.  
  113.  
  114.